package com.itheima.d6_object_stream;

import java.io.Serial;
import java.io.Serializable;

public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = 1184930882188892505L;
    private String name;
    private String zi;
    private String skill;
    private int age;

    public User(String name, String zi) {
        this.name = name;
        this.zi = zi;
    }

    public User(String name, String zi, String skill, int age) {
        this.name = name;
        this.zi = zi;
        this.skill = skill;
        this.age = age;
    }

    public User(){}

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getZi() {
        return zi;
    }

    public void setZi(String zi) {
        this.zi = zi;
    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
